﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" x:Class="BancoSim.ucLista" 
             mc:Ignorable="d" 
             d:DesignHeight="130" d:DesignWidth="225">
	<UserControl.Resources>
		<ItemsPanelTemplate x:Key="ItemsPanelTemplate1">
			<StackPanel>
				<i:Interaction.Behaviors>
					<ei:FluidMoveBehavior Duration="0:0:0.5" AppliesTo="Children"/>
				</i:Interaction.Behaviors>
			</StackPanel>
		</ItemsPanelTemplate>
	</UserControl.Resources>
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="*"/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>

		<Grid Grid.Row="0">
			<DataGrid x:Name="dgListaProcesos" Height="100" Margin="1" ItemsSource="{Binding}" AutoGenerateColumns="False" ItemsPanel="{DynamicResource ItemsPanelTemplate1}">
				<DataGrid.Columns>
					<DataGridTextColumn IsReadOnly="True" x:Name="Nombre" Binding="{Binding Nombre}" Header="Nombre" Width="80" CanUserSort="False"/>
                    <DataGridTextColumn IsReadOnly="True" x:Name="Prioridad" Binding="{Binding Prioridad}" Header="Prioridad" Width="sizeToHeader" CanUserSort="False"/>
                    <DataGridTextColumn IsReadOnly="True" x:Name="Peso" Binding="{Binding PesoS}" Header="Peso" Width="60" CanUserSort="False"/>
                    <DataGridCheckBoxColumn IsReadOnly="True" x:Name="PeticionEspecial" Binding="{Binding PeticionEspecial}" Header="PE" Width="sizeToHeader" CanUserSort="False"/>
				</DataGrid.Columns>
			</DataGrid>
		</Grid>

		<Grid Name="gdAgregar" Grid.Row="1" Background="Green">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
			<Button x:Name="btnAgregar" ToolTip="Agregar nueva tarea." Background="Black" Foreground="Yellow" FontSize="12" Grid.Column="0" Content="+" Height="20" Width="20" Margin="3" Click="btnAgregar_Click"/>
            <Label Name="lbNombre" Grid.Column="1" Content="Nombre" Width="199" Foreground="White" HorizontalContentAlignment="Center"></Label>
		</Grid>
	</Grid>
</UserControl>
